//
//  NetWorkTool.h
//  QuickCure
//
//  Created by 马文星 on 16/4/25.
//  Copyright © 2016年 Demos. All rights reserved.
//   网络请求工具层

#import <Foundation/Foundation.h>
#import "NetWorkBlocks.h"
#import "NetWorkDefine.h"
#import "AFNetworking.h"


@interface NetWorkTool : AFHTTPSessionManager

///网络工具单例
+ (instancetype)shareManager;

///检测网络
- (BOOL)isReachableByAFN;


///我的GET请求
- (void)GET_RequestWithUrlString:(NSString *)urlString
                          parmas:(NSDictionary *)params
                   successBloock:(SuccessCompletedBlock)success
                    failureBlock:(FailureCompletedBlock)failure;

///我的POST请求
- (void)POST_RequestWithUrlString:(NSString *)urlString
                           parmas:(NSDictionary *)params
                    successBloock:(SuccessCompletedBlock)success
                     failureBlock:(FailureCompletedBlock)failure;
    
//……  因为本接口只有 GET 和 POST 请求，所以……。

@end
